home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 709 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: gate.net!news-adm
  2. From: debmcd@isysfla.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Need help with buttons!
  5. Date: 5 Jan 1996 22:57:41 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4ckad5$13pg@news.gate.net>
  8. NNTP-Posting-Host: orlfl2-40.gate.net
  9. X-Newsreader: SPRY News 3.03 (SPRY, Inc.)
  10.  
  11. I am writing a Windows multimedia program in Visual C++...
  12.  
  13. In this program, there is a button that when pressed, will execute functions that take some time to complete.  While this 
  14. execution is occuring, I don't want the user to be able to press the button again.  Does any one know of a way to lock out all 
  15. mouse clicks until certain commands are finished executing????
  16.  
  17. (I have tried changing to the WAIT icon and disabling, or graying, the button as well as the entire window...this does not help.  
  18. When this was done, all mouse click-messages are sent to the queue and still processed when the previous execution is 
  19. complete.)  For example, if the button were to play an audio clip when pressed, and the user clicks the mouse over the button 
  20. again, before the audio clip is finished, the audio clip would play again--and I don't want this!
  21.  
  22. Please help!!
  23.  
  24. Thank you!
  25.  
  26. D. McDonough
  27.